
<!DOCTYPE HTML>
<html>
<head>
	<title>Our Love Story</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<style type="text/css">
		@font-face {
			font-family: digit;
			src: url('digital-7_mono.ttf') format("truetype");
		}
	</style>
	<link href="/stylesheets/default.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="/javascripts/jquery.js"></script>
	<script type="text/javascript" src="/javascripts/garden.js"></script>
    <script type="text/javascript" src="/javascripts/functions.js"></script>

</head>
<body>
	<div id="mainDiv">
		<div id="content">
 			<div id="code">
				<span class="comments">2016-9-3</span><br />
				<span class="space"/><span class="comments">我们第一次相见</span><br />
				<span class="space"/><span class="comments">这是我生命中最重要的一天。</span><br />
				<span class="space">从此我不再孤单,<br />
				<span class="space"/>我期待这一生与你一起走过,<br />
				<span class="space"/>走到尽头再回头看尽一生铅华满地。<br />
				<span class="space"/>我期待与你慢慢变老,<br />
				<span class="space"/>等我们老到哪儿也去不了,<br />
				<span class="space"/>还能满载着一生的幸福快乐。<br /></span>
				
				<span class="keyword"/>我愿意爱你直到老去,<br />
				<span class="keyword"/>我会为我们的未来撑起一片天空,<br />
				<span class="keyword"/>为我们的将来担负起一生的责任,<br />
				<span class="keyword"/>愿意为你去做每一件能让你开心快乐的事。<br />
				<span class="keyword"/>。。。<br />
			</div>
			<div id="loveHeart">
				<canvas id="garden"></canvas>
				<div id="words">
					<div id="messages">
						Mrs Zhang JL：
						<div id="elapseClock"></div>
					</div>
					<div id="loveu">
						Love u forever and ever.<br/>
						<div class="signature">- Twb</div>
					</div>
				</div>
			</div>
		</div>
	
	</div>
	<script type="text/javascript">
		var offsetX = $("#loveHeart").width() / 2;
		var offsetY = $("#loveHeart").height() / 2 - 55;
		var startTime="2016-09-03 10:20:00";//设置开始时间
		if (!document.createElement('canvas').getContext) {
		    document.execCommand("stop");
		} else {
			setTimeout(function () {
				startHeartAnimation();
			}, 3000);

			timeElapse(startTime);
			setInterval(function () {
				timeElapse(startTime);
			}, 500);
			adjustCodePosition();
			$("#code").typewriter();
		}
	</script>
</body>
</html>
